package com.example.springbootdemo.hash;


import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.CountDownLatch;

public class HashTest {
    public synchronized static void main(String[] args) {
        Map<String , String > map = new HashMap<>();
        map.put("cici","cici3");
        map.put("cici","cici2");
        String a = "cici";
        String aa = "cici1";
        CountDownLatch countDownLatch = new CountDownLatch(1);
        Map<Long , String > map1 = new HashMap<>();
        System.out.println(a.hashCode());
        System.out.println(aa.hashCode());
//        System.out.println("get:" + map.get("cici"));
    }
}
